from common.log import logger
from common.util import *
from config import GlobalVar as Gv


def run_monkey():
    if is_offline(Gv().devices):
        logger.error("————设备离线————")
        return
    adb_root()

    monkey()



if __name__ == '__main__':
    run_monkey()
